package com.newly.api.business.feign;

import com.newly.common.base.constants.ServerUriConstant;
import com.newly.common.base.entity.R;
import com.newly.common.base.entity.business.Dto.MediaDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author: chenruheng
 * @Date: 2021/11/8 14:30
 */
@Api("图片管理api")
@FeignClient(path = ServerUriConstant.NEWLY_BUSINESS_MEDIA, name = ServerUriConstant.NEWLY_BUSINESS_SERVICE_NAME)
public interface MediaClient {

    @ApiOperation("上传图片")
    @PostMapping("/upload")
    R upload(MediaDto mediaDto);

}
